import { createMemoryHistory, createRouter } from 'vue-router'
import Student from "@/view/Student.vue";
import Dormitory from "@/view/Dormitory.vue";
import Welcome from "@/view/Welcome.vue";

const routes = [
    { path: '/', component: Welcome},
    { path: '/student', component: Student},
    { path: '/dormitory', component: Dormitory },
]

const router = createRouter({
    history: createMemoryHistory(),
    routes,
})

export default router